Fixed CachingStateRepository to support different Feature implementations (#56)