Type A versus Type B Glass Formers: NMR Relaxation in Bulk and Confining Geometry