Validates unresolved references and invalid expressions.