Ensure a schema has tables before attempting to link datacopy items.

  Also, remove unused datacopy argument from ClassDict.link_refs.