More consistent error message.
Clearer assertion.
Delayed error for set!.
Test for CTYP-49.
Potential fix for CTYP-42