Added 2 utility metafunctions for variants. Necessary to make some algos variant aware.

[SVN r86584]
Tests for variant aware envelope.

[SVN r86585]