Added DefaultDict utility function. Added ios platform.