remove use of as_form (removed from UFL)
Merge pull request #304 from firedrakeproject/upstream_compat

remove use of as_form (removed from UFL)