Closes #309.
This also lays the groundwork needed to reduce batch breaks between solid and alpha tiles.