Added stricter model and doc type verification for search aliases on
managed models.
Rearranged condition in `hook_alias`.
Merge pull request #58 from Sparrho/issue-57

Model and doc type verification is now stricter and applicable to all search aliases