Make Reg() and Mux() more generic so users don't have to add unnecessary Flatten()s.