Allow use_class_as_property decorator to be used inside DOMElement classes (#36)

This PR fixes issue #36. @chmanchester can you please have a look at?