Fixed removing local (_new) objects

If an object was created, added and removed without flushing in between, it
was still persisted. Fixed by directly removing _new objects from the
trackedObjects array.
Merge pull request #89 from doo/local_object_removal

Fixed removing local (_new) objects