Refactor complicated rule condition (EqualsExpression for primitives) into a helper method
Regenerated with updated collections template (don't need to cast return value of GenSizeOperation)