Fix for Elastix failing because of too much transform matrix values.

Fixes a bug where the a transformation matrix would return more than 12
values, namely 18, which is wrong.