Rework .toString() for schema/instance trees

Also rework .asJson() for schemas, it contained too much information.

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>