Set a max depth when deserializing into specific type.

This is a specific place where we weren't setting the max depth on the serializer. So use the default setting of 20.