Extract Dereferencing enum out of ref resolving test

It will play the same role as the existing AddressingMode enum.

Use it in SchemaLoader.

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