fixes #244, weak objects (except for SpriteObjects) are temporarly stored until they are needed
refactoring
Merge pull request #245 from Catrobat/parser-fix

fixes #244