Small changes for map export from tmx to json

Small changes to use less memory in tmx2json
Small changes to avoid a potential issue with float in area in processmap.js