Change a bunch of reference function arguments to pointers.

Per the coding style and sanity.
Merge pull request #1206 from comex/amperspocalypse

Change a bunch of reference function arguments to pointers.