Fix issue #91: EntitySystem is not interested in inactive entities.

EntitySystem#check() was happily inserting inactive entities. I've included a unit test that exercises the change.