Fix EZP-21613: Compound\LogicalAnd serialization fails
EZP-21613: Added regression test