Fix to ensure the role object serializes correctly as part of user