oppDistFun: fix a problem with local slice size <= 1

This fixes some nasty indexing problems related to what happens when last dimension of a n-dim array = 1. Matlab thinks this becomes a (n-1)-dim array when you call `size()` on it. The solution is to force the number of dimensions for the local parts of `A` and `x` with a-priori knowledge during construction.