Fix declared_attr import, fixes #34