Performance improvement to entity-component lib

Less reflection by using int ids instead of class names.