Relax type constratints on swap (MutableArrays)