Merge branch 'fix/ndarray_deprecation_warnings' into 'stable'

Fix Numpy-related deprecation warnings

See merge request !397
26 jobs for stable in 54 minutes and 16 seconds (queued for 8 seconds)