Finished set legality filters.

Not entirely sure extended is correct, but it's not an official format
anymore anyway. If someone needs it and it's broken, that's what bug
reports are for.