Tree: allow numeric ids (instead of string ids) in set("path", ...)

ID may be number.

See https://bugs.dojotoolkit.org/ticket/18279