Added detection of dict() types for R17