lots of spatialhash and system fixes, incl. addition of entityfinalized event

at least it doesn't crash anymore