Removed the type parameter to unionCaseName and fixed the return type of tokenToOpcode