Fixed the setting of wrapper class fields

Since no autoboxing is done when using reflection...