Explanatory error message for inheritance errors

Issue #6.