Further work on batching

Transformation seems to work right but still doesn't draw all the instances. Also need to fix the tex coords.