Inlineable classes

This WiP PR will host the inlineable classes optimization. Follow up in the comments.
After second thought I don't know why I thought that, indeed. I probably thought it'll force too much stuff, or I was thinking about the `case _ =>` just below, where you want to be pre-transforming to unify records.