bug: TileModeEntity.__do_layermod does partial xy

This fixes a FIXME in __do_layermod where an Entity's fractional X-Y
position was being truncated.
bug: layermod type error

There was a type error in the layermod code.  range(list) is not a
thing.