Small bug fixes on __tostring metamethods.