Canonicalize collections in builder pattern (not finished yet)

for testing