Matrix4.getInverse() was incorrect when the operand was the same as "this"

I also added a unit test that previously failed and now passes.

@gero3 reported this issue here: #3455