Add __sleep and __wakeup functions to FieldFormElements