Update: 
Responsys anyway does the field.upcase() conversion at its end.
And if a case of 'FoO' and 'FOO' occur it returns the following error - "Duplicate Field Names: FOO".

Resolution:
Getting rid of upcase in this code.