Use FromJSValConvertibla for union conversions.

With bonus codegen tests.