Added the start of a test for specialized branched loops.

Highlights a bug where only the innards of the select are
preserved in the branched versions.