improved dj.struct.tabulate to handle multiple values for each combination of indices.