metadata conventions fix for ref names
sql writer - enable refs to unique keys
yaml table def loader - load refs
refs tests