Add ArrayFormula support
Fix compile error under clang