function validate(tree, reporter, global = Reflect.global) {
  let checker = new FreeVariableChecker(reporter, global);
  checker.visitAny(tree);
}
Validates that there are no free variables in a tree.