Building CacheStore using generics

Closes #897. This change solves problems when deploy a vraptor application under Wildfly 8.2, that uses Weld 2.2. This version compare generic types to decide the bean to inject.

Related to #902.
It makes sense CDI require it to work, I'm not sure how it was working before 
(since CDI 1.1 already requires generics info on producers). Who knows...