Did not know about var_names option in sampling. You can open an issue on GitHub as this looks like a clear bug.