Use true compile-time branching in SparseVector::assign to handle automatic transposition.
Fix a couple of warnings in unit tests.