Fixed bug where primitive types were loaded by their name instead of by loading their value from their wrapper types.