Add unitTest with `delete []`.
Move some code into ASTUtil.cpp
Remove explicit `== boolean`.