Fixed nested generics support on both sides