Fix casning problem if object does not have lower case property names

If an object does has upper case property names, then when you set the object to the parameters then the casing does not match.