I might have found 2 bugs:
1. Imported file (cs dummy model) paused the script after loadMap(1 arg)
2. Some wierd thing was related to items when executing loadMap. Script execution was aborted and red "null" was echoed. The script stopped after extracting w3t from map.
Additionaly after executing another script with loadmap IO tells me cant delete copied files (w3t and wts files remain in the the temp folder). Maybe something is wrong with loadObjects.
The problem was solved after deleting items. However I could not reproduce this error. Some of the items were created with grimex.
I have the non working map if you wanna check that.
Sry for wasting your time if i be noob :)