JsonValue not properly working with delegate and polymorphic serde

This is a unit test that shows a functional regression from 1.9.9 to 2.1.x.