That beats me! Yesterday I tested
test {
echo -a $active
}
in the aliasses section ( at least I think so) and got echoed: $active. Now it works fine! Sorry, I think I had a typo and a blackout. The original code is good, something else must be wrong...