Fixes #415. Correctly puts the vari on the stack.
Fixes #415. Correctly puts the vari on the stack.

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