Check which roles an account holds on a stock token contract
role query parameter is provided, checks a single role. When omitted, returns all roles for the account.
Valid roles: ISSUER, SUB_ISSUER, CONTROLLER, LEGAL_OPERATOR.
ISSUER, SUB_ISSUER, CONTROLLER, LEGAL_OPERATOR.hasRole boolean or a roles map depending on whether a specific role was queried.