> So IIUC, we'd e.g. never pass int.class but Integer.class. Why is this?

No reason, I didn't watch out. Just changed it to also just pass ```int.class```.

> I also think we need to take care of colliding types with the same simple name here.

Right. I'd like to handle that in a separate issue in Beta2, just to get this one out of the door. Is that ok for now?