Fix bug that prevented taxonomy graph from being cached correctly

The cache key used to write was incorrect. It was missing the preview bit.

The type in expected by Cache.getAs and the actual cache value were mismatching, thus causing the cache to return None even when there was a valid cache entry set for the taxonomy graph.