Add setdefault method to dictionary storage