Added serialization support to IdQuerySelection's.