Disallow non-nullary constraint synonyms on class.

Authored by ezyang on Feb 27 2017, 5:52 PM.