Global Gevrey hypoellipticity for twisted Laplacians