Bug fixes to operator products and added an operator transpose