Just a heads up that this bug was fixed in Tiled 0.16.2.
But, those using the terrain tool should be aware that there is a related issue with the terrain information getting messed up, which isn’t fixed yet. If this affects you be sure to follow this issue: