The 'addComponent' function in the 'Entity' class now returns the created component
'Entity::addComponent' now returns the correct type