revert changes to check_matching_dims add is_rev_matrix tests
revert changes to check_matching_dims
add is_rev_matrix tests

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