tmx: Fix issues reported by golint.