Fix problems with transformation matrices that include numbers very close to zero (as in issue #222)