Fixes to tilemaps. Editor mode. Fixes in code too.