fix introspection bug in foreign key annotations causing 500 server error
fix introspection bug in foreign key annotations causing 500 server error

Previous refactoring froze the composite key reference map too soon,
prior to trying to use its dict.keys() method.

informatics-isi-edu/ermrest,informatics-isi-edu/ermrest,ini-bdds/ermrest,ini-bdds/ermrest