Move checks for references into slow paths of operator functions. Remove duplicate opcode handlers.