Speed up check if dtypes same; ensure numpy 1.5 does not fail