Static variant of inv for complex types.
negEquals and invEquals were wrong! Fixed now.
GL fix and updated tests
added copyright
Merge remote-tracking branch 'upstream/master' into fractional_shifts