add simple serialization of CacheBuilder/CacheBuilderSpec