toJSON does not send empty nested collections to the server