Add getLiteralType() methods to all literal type classes.