I don't think I needed _all_ of those call-by-ref
Remove some more of the call-by-refs; only use refs for vector-type things
Forgot to update src/RcppExports.cpp