BUG: catch exceptions

ENH: check for dimension


git-svn-id: https://svn.bigr.nl/elastix/trunkpublic@4548 4d348492-3962-11de-aa85-65a2020054a3
ENH: generalizing elxInvertTransform for multiple dimensions


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