Add ref loop detection tests for inline ref resolving too

The same as the canonical ones. Some need to be added to account for the fun of
inline dereferencing...

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>
Add more corner case inline dereferencing loops

You asked for it, you got it.

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>
Start and add dangling reference tests

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