Equality method on arrays now handles null arrays
TODO updated
Extracted common CodeDom patterns to ExpressionBuilder