Degeneracy loci, virtual cycles and nested Hilbert schemes, I