add NIL_ENTITY constant, write some more tests

+ Add NIL_ENTITY for default initializer to not point to some
  existing object
+ Clarify comment in mkentity_kind()
+ Add related sanity checks to entity getters
+ Write tests for handling the new constant and missing ones for sentity()

See #9.
remove unused include from entity.h

See #9.