Fix object array check for numpy 1.7 (removal of numpy.object)