Replace WebCore::Length's union with a variant, and generate its serializers
<rdar://problem/116264315>
Pull request: https://github.com/WebKit/WebKit/pull/18451