encode and test unary ops
patch primitive ops on long & long