use toJSON2 so that functions can be sent in payload.
bump version