Attempt to resolve non-const lvalue reference issue.
Attempt to resolve non-const lvalue reference issue.

stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math