Added NSCoding implementation to ActivityThread.