Allow more complex variables replacement in macros
Currently variables will only be replaced with standard string replacement. We should support also object replacement, so that values of variables in macros can e.g. be lists or dictionaries.
Currently variables will only be replaced with standard string replacement. We should support also object replacement, so that values of variables in macros can e.g. be lists or dictionaries.