remove spurious indexing operation from orthogonal init code + add test for invalid shapes