Moved importing linalg mod outside of getTransformation (fix #59).