more fixes to get 1.2 behavior back in log_prob templated functions
more fixes to get 1.2 behavior back in log_prob templated functions

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