Fix for #122

Fetch generics type from Set as well