Add sanity check for an assumed rank arg that is also type(*) and has the contiguous and target attributes