added cholesky factor transform to prob/transform.hpp with tests and some extra error handling cleanup