arraypad: allow padding with zero entries (i.e. no padding).
Merge pull request #634 from josteinbf/arraypad-zeros

arraypad: allow padding with zero entries (i.e. no padding).