More tests on gamma matrix trace, some bugfixes.