fix broken stencil boundary

Constant would lead to a segfault in some cases
native: stencil input- and outputarray have same dimensions
comments