Linear dislocation arrays in heterogeneous materials