Allow model classes to report initialization errors

Completes #66.