Fix #796: Improve error messages for bad js.Any hierarchy
Merge pull request #803 from gzm0/extend-js.any

Fix #796: Improve error messages for bad js.Any hierarchy