Fix issue with multiple fields with the same name being generated.
Merge pull request #4 from romerod/master

Fix issue with multiple fields with the same name being generated.