change to a generic has_trait() feature

@stevan rightly pointed out that `is_attribute_lazy` sucked and
suggested a generic trait feature to test for explicit traits. This
creates an example API for that on `mop::attribute` and changes the
`lazy` trait to use it.