Inlineable classes

This WiP PR will host the inlineable classes optimization. Follow up in the comments.
I assume you are going to wrap this into a try in the next commit