First-pass at generating composition code from objects ingame instead of requiring conversion outside it. (Workaround for #87)