Common lib: make dynamic array Swap() method more generic by using std::swap() to use specialized swap() versions for the type if any available.