namedProperties doesn't seem to work with some terrain objects:
You can see that the return value is empty, while it is clear that the object does have a property: ["map", "tree"] or ["class", "treeXXX"] (due to being found by nearestTerrainObjects)
A simple object based on that object's model works correctly: