Serialize formula if present

It seems to be important that the <f>..</f> comes before the <v>..</v>