In reply to http://lists.alioth.debian.org/pipermail/parted-devel/2011-November/003975.html I've tested the patch in question, and setting the flag raid partition 2 of on sda (3TB) with a 1GB SWAP at the end works.