Move constant check to if so compiler has easier time deducing during compilation
Move constant check to if so compiler has easier time deducing during compilation

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