Initial version of Key/Ref support for single-depth reference trees.