Propagate roles to classes; see issues #28 and #29.