Exclude model base classes (MTI or otherwise) from warnings

Fixes #3604