The Gap Dimension and Uniform Laws of Large Numbers for Ergodic Processes