Make yaml load correctly and reference globals correctly.