Implement setdefault on wrapped PHP arrays.