Reinsert check for constructor/family mismatch.

It appears that the code to do this was accidentally deleted at some
point. It is now called again.

Fixes #1434.
Merge pull request #1435 from david-christiansen/issue/1434

Reinsert check for constructor/family mismatch.