Get rid of getID virtual method call.

Static IDs make more sense and we can implement those using compile
time polymorphism at a higher layer than the entity component system.