Fix old autoglobal-style examples programs in reference.