Serialize form to object with some additional functionality