I figured it came from array. Maybe people used to say they arrayed themselves when they dressed, and that they unarrayed themselves when they undressed. It would be an easy step to go from unarray to un'ray.