Merge pull request #253 from harveyfeng/tablescan

Correctly detect in-memory RDDs for table scans.