Implement NSCoding.