Heterogeneity, Measurement Error, and Misallocation: Evidence from African Agriculture