Keys: Modified and added standardized toJSON/fromJSON prototypes