json typeSafe serialization for Values stored in polymorfic collections