Hash.new should convert null/undefined values to nil when a native object is passed