Cart config memory optimization, add buildin variable _name_to_file mapping and runner list test optimization.

virt: Cart config memory and code style optimization.
virt: Adds cart config variant name to file mapping.
virt: Improves list tests function.