Add row, diag, column functions; make Vector.as_row and Vector.as_column use the MemoryHandle interface; improve scalar handling and fix some errors in __div__ and __mul__ code
Add one more check for improved scalar handling