Added swap method to Array and ConstArray.