Correctly detect in-memory RDDs for table scans.