Made MAP_TEMPLATE expand MAP_ID and TILE_WIDTH properly