Tweaked ConfigHelper::filterVariants() to avoid using references and make HHVM happy