Fixed an error.
Changed addComponent() to take an explicit type, such as Renderable. hasComponent() wasn't returning true for inherited types.