add (*State).Togofunction and Getupvalue