Make JsonRef work with generic Mappings and Sequences instead of just dicts and lists