Add variables to autodescribe and cythongen

Reincarnation of #161 and #171.