Optimizing cell arrays for accurate functional genomics