Remove GLM usage from tangram API and fix a misuse of glm::vec2.length()