Increase codegen test coverage.
Implement FromJSValConvertible for union types.
Use FromJSValConvertible's nullable conversion code.
auto merge of #2237 : Ms2ger/servo/union-fromjsvalconvertible, r=jdm

With bonus codegen tests.