Construct missing entity components when handling entity.state

This requires the entity collection to maintain a table of possible
component types and a way to constrcut each one.