Fixed strange crash and camera bug, Added garbage collection for objects, children and components.

Changed the RemoveComponent to a template function, since you can only add 1 component of the same type to 1 object