JsonSchemaTree and derivates: modify interface/implementations

It did not contain what was necessary for ref resolution.

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