go: allow toggling deduping of hash keys and class names