When merging footprints, support noncontiguous inputs
Merge branch 'u/jbosch/DM-541'