An attempt to make conforming to NSCoding easier.