Fix smart resolver for descriptor classes

Fixes #28.