Added test for passing a kernel argument by value.
Fixed passing kernel arguments with byval attribute.