Set cache concurrency to available processors
Added metrics test cases for Cassandra and Hbase. Fixed bug that circumvented type caching (related to #489).