mlr: fix a bug regarding the passing of more complex objects to hyperparams