Fix tilemapbuffer

#921, #922

This is not the best approach because we are checking the dimensions every frame, which is obviously unnecessary. Any ideas how to let the tilemaps get notified when there is a stage resize?