genlib/record: support passing params in same object