More work on the tmx loader.