moved ComponentType to belong to Component, fixed various bugs, tested EntityManager and finished its implementation