BUG: the new linear interpolator did not handle edge cases very well.

Reported by elastix user Marvin Albert.

git-svn-id: https://svn.bigr.nl/elastix/trunkpublic@4809 4d348492-3962-11de-aa85-65a2020054a3