Finish moving array-wise operators to 'map_tiles'.

Make more functions top-level.