Yes, This code ignore redundant keys. 
In this case, param is just  a`{"genelarization_weight": 1.0f}`, but `unlearner_config` requires `unlearner` and `unlearner_parameter`.
It throws `cast_check_error` exception.