Rename ValidationError => InvalidEntity

Closes #64.
Fix warnings