pass complex constant parameters by reference

I think this might save us some copy operations.