Arrays 'union' + minor refactoring