fixed TypeError bug when roles is array on addUserRoles/removeUserRoles

Hello,
I found a bug on my last commits and this should fix it. 
Sorry for my mistake.