Added non-member function swap() for ScopedHandle.