Support stats for cached partitioned tables

The main change is that Shark `Table` metadata objects now manage its RDD(s) and corresponding stats, including handling merging for unions (i.e for INSERTs).

Still working on some runtime tests for SQLSuite for stats collecting and column pruning.