Compositional Generalization without Trees using Multiset Tagging and Latent Permutations