Don't let const_defined look up its inheritance.

This fixes #233