Make transferFlags a multivariate function
It is not uncommon to transfer the flags from multiple fields to one target, e.g tansferFlags(field=["a", "b", "c"], target="x"). Currently we only support this by calling
transferFlagsmultiple times, which might trash up the history with empty columns. This MR makes
transferFlags` a function supporting the projection of flags from many to one.