Fix resolution of dtype ndarray attribute