I dont know what happened since the last hotfixes and updates, but two days ago everything worked, now i get this from my mod scripting:
attempted to call internal<tuple> value near for..in
perhaps something changed in getAllObjects()