discover/grub2: Implement statement blocks