DependencyProperties on base classes aren't found

This fixes a bug where dependency properties in base classes aren't found, which would most like cause all kinds of havoc.

Possibly related to #555