mapper: Fix v2 mapdata layout

Introduce new v2 mapdata layout. The new layout introduces restrictions on the
size of the object on the map, but it is simpler and does not split objects
between mapdata blocks. It also behaves correctly with small blocksizes.