Better handle dtypes and unsigned flag.