GROOVY-6933: Add swap() to List and array.
Collections.swap() returns nothing, but this method returns this object.