schema: check for undeclared references when building a Module