EventStoreRepository fixed for CLR-type.

Repository now OK.