When getting a boost::python::object object from a ndarray object, it should not be required that its type is a scalar or a ndarray. It could also be a generic object!