test Dart folding for nested generics