Pass form state by reference.

Fix argument compatibility broken by #3.