Add dict-comparator to dictionary protocol
Adapt util.sparse to comparators