Prevent users from defining instances for abstract classes.

Authored by ezyang on Mar 1 2017, 2:11 AM.