Fixes buffer overflow exceptions from occurring when loading very large TiledMap instances.