JsonSchemaTree: create a .contains() method, implement in Canonical

Which is quite simple: test if the provided ref is contained by the loading ref.

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