Fixes #93 to_dict returns wrong enum fields when numbering is not consecutive
When generating code, ensure that default list/dict arguments are initialised in local scope if unspecified or `None`.