[SPARK-3701][MLLIB] update python linalg api and small fixes

1. doc updates
2. simple checks on vector dimensions
3. use column major for matrices

@davies @jkbradley
From the doc of `tostring`:

> Construct a Python string containing the raw data bytes in the array.

Maybe we should use `np.reshape` here, which doesn't copy the data.