Enable proxy to be used for abstract classes.

Before, it only worked with interfaces.