Various fixes and improvements

First commit should fix https://github.com/dart-gde/discovery_api_dart_client_generator/issues/45

Will add more commits for the other open issues to this pull request.