Added slightly less general, easier version of 'phqFlatMultiIdFn', 'phqSingleIdMultiFn'.