Fix support for deserializing optional parameters