Sb flatten array option

@joe-goullaud went ahead and implemented the option.  Could you look at it when you have the time?