(#16157) ensure that mirror and raidz are used as subcommands
Previously, the subcommands mirror and raidz was repeated for each element of the array.
This resulted in incorrect commands when multiple values were specified. This patch makes
sure that these are used in the subcommand position and only once.