Fix document export of Trail objects (fixes #839)
Fix trail helpers for land layers (fixes #838, ref #842)