Pass primitive types by value instead of reference

Passing by reference (which has to pass the 8 byte pointer anyway) is no
faster, and often slower, than simply passing by value.