Add glrequest template function for GLdouble.