JsonSchemaTree: use the Dereferencing enum

This allows some niceties:

* the copy() method calls it to build new instances;
* .asJson() is now final.

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