Implement variable expansion in yaml namespace, add tests.