Load struct given its name from string

Nice improvement, thanks @Nicd.

@al2o3cr, yes, I also prefer to be explicit. In this case

  • the input is not coming from the user but from a generated code so I expect no mispelling happening here.
  • the idea is to keep the same code working and don’t touch it as that library grows with more structs names, it’s a bit of magic, but I was wondering how useful this approach would be.