My shot at implementing an entity system in Scala