Interactions of Logjams and Spatial Heterogeneity in Dynamic Rivers