Clone keyIds in fetchRelated. Thanks to @james-zhao-zocdoc, closes #358