Rename d_type to dtype