test for PY-13653 PyCharm doesn't know that arithmetic on ndarray is overloaded, infers return values to be primitive types (NumPy)
(cherry picked from commit 834126d)
(cherry picked from commit b5cfae2)