Sparse query masks

Why is `sparse_feature_mask1` etc only sometimes wrapped in `frozenset(-)`? Can we just add at beginning of function:

    if not isinstance(feature_set1, frozenset):
        feature_set1 = frozenset(feature_set1)