Inlineable classes

This WiP PR will host the inlineable classes optimization. Follow up in the comments.
Consider factoring the `if (isStat) ...` out to a helper (its used at least 7 times)