PNaCl: refactor unary operations

Added explanatory comments
Handle over-writing of existing array
Short-cut for in-place operation