Added __as_dict__().