Prevent Trace initialization from numpy arrays with ndim>1

Currently we do not check the number of dimensions of numpy arrays provided in Trace initialization. This can lead to confusing errors later on, e.g. with numpy/scipy operations that can operate on multidimensional data (with optional axis argument).