Detect nested Ref and Fn:: hashes