What MxStudio version? Version 10, I presume. I tried this in a retrieve-activity and found this behavior:
The $currentObject/<anyAttributeOtherThanBoolean> = true seems to always return false
The $currentObject/<anyAttribute> = false seems to always return false
The $currentObject/<anyAttributeOfTypeBoolean> = true returns true if the boolean is true
The $currentObject/<anyAttributeOfTypeBoolean> = true() returns true if the boolean is true
The XPath editor seems to accept only as value 'true'. It only accepts 'true()' if the attribute is of type boolean.
So, apparently the editor has an oversight in the validation of the xpath-expression and it is ok with comparing any attribute against a boolean-value. This is probably a choice that Mendix made for backward compatibility.
For your code I expect this to result in: only the objects where both enumerations are empty. This because each Delete=true, Delete=false, Active=true, Active=false are false.