fixed 3rd order autodiff tests for matrix functions:

columns_dot_product, columns_dot_self,dot_product, dot_self, mean, sd,
sum, variance, rows_dot_product, rows_dot_self