Fix erroneous type spec on put_pdict