Bix bugs that lead to compile errors

- Fix removal of authors, affiliations and references on update and delete
- Add equals method to Model