Parser cleanup to improve handling of multiple targets with same ids, fix bug in room editor, other various minor bug fixes.