Add tree format support to type system REST API