Add docs to describe _flat_dict()