WIP #539 resetAll made up several percent running time for phobos
fix erasure of wrong objects
Merge pull request #687 from Trass3r/perfimprovements

first step #539