Refactored the object type system.
Removed some unused classes.
Fixed test cases.
Fixed a crash when moving more than one entity brush.