Added support for ndarray object dtype