evaluate the arguments to primitive functions in statement expressions

AccelerateHS/accelerate#187
wibbles for primitive function codegen

Split into unary and binary cases. This avoids having to supply the arguments as a one-or-two element list and pattern match on this.