Allow scalar arguments to appendArgument() and prependArgument()

Implements #114.