TilemapLayer / Tileset performance and documentation

Huge scrolling-performance efficiency increase and some cleanup.
Most of these are better suited as local variables.