added check for array of depth==1 in placePatch
merged fix in place.patch from master into branch 'master' into Armadillo