Screw dislocation arrays in heterogeneous materials