When I run grub-mkconfig (it's grub2, -multislot), it generates root=/dev/md127p2. md arrays get assembled at boot so their numbers aren't fixed.
So far I've been manually editing the generated config. But I don't want a non-booting server some time in future because of this bug. My rootfs has a label with gentoo and root=LABEL=gentoo works perfectly.