Arrays::flatten - possibility to preserve keys

(In case of duplicate keys, last one wins, same as with native php functions, e.g. array_flip or array_merge)
Merge pull request #1262 from Majkl578/feature/array-flatten-preserve-keys

Arrays::flatten - possibility to preserve keys