Fix guvectorize scalar args #532

Fix and tests for input and output scalar args.
~~Pending tests on GPU target.~~