make flatten call the correct subclass
Merge remote-tracking branch 'origin/target-4.3.16' into target-4.3.16