Validate objects. Not just entities.

#31