Remove bounds checks from Array1D and Array2D. This has a measurable impact on interpolation performance. Also remove an accidentally named enum with an anonymous enum. Change-Id: Ied6a4b2b06bb27a7f004bd0e01353742e1f84034