Rewrite logging code for glm::vec and glm::mat (fixes #55)