Adds arbitrary halo thickness support in four directions for integer arrays