Fix to `dip_image` methods `tensortospatial` and `spatialtotensor`.
Fix to `dip_image` methods `tensortospatial` and `spatialtotensor`.

DIPlib/diplib,DIPlib/diplib,DIPlib/diplib,DIPlib/diplib,DIPlib/diplib,DIPlib/diplib