Add LogicalOr support in Persistence/InMemory