Fix #1885 "NPE while recovering for error in custom MIP"

- passing `bindNode.staticBind.getCalculate` was incorrect
Minor: Use extension method, remove final
Implement #1420 "Allow XPath expression for required"