BUG: in NthElementAdaptor pass by reference to modify argument

Change-Id: I54d9b264216857ebd3b2ba7ac6d302e9ebdd56f8
Merge topic 'FixVectorImageGradientRecursiveGaussianRVO'

941f550 BUG: in NthElementAdaptor pass by reference to modify argument