fixed HostScopedRole* operations

Hi Brian,

this is my fix of the issues we talked about yesterday (I created a JIRA for that: WFLY-1790). It's naive, so if it's wrong or insufficient, just don't pull this :-) The other commit is a cosmetic.

Thanks.

LT