doc: use LDoc @object type for std.tree.

* lib/std/tree.lua: Improve documentation.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>