Use class_attribute for delegate registry so inheritance works. Fixes #59