Implement Copy for SocketType, Constants and Error.