Bug 13822 precision problem

This problem causes an assert in ITK when using any transformation angle besides a unit-aligned one. I don't have a way to work around it other than apply this fix. This has my unit test that demonstrates the problem, and a change that fixes it.