Moduli spaces of bundles and rigid local systems