Deserialization support for Scala case classes, including proper handling of default values.