Static script validation instead of during script evaluation (OPAL-2293)