JsonSchemaTree: make popd work!

Oops...

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>
JsonSchemaTree: add a .resolve() function

This will resolve a ref against the current context.

Also make popd() final.