Multiple form signing fixes

1. This PR adds excluded fields to the compiled form signature. I believe that was intended but code blocking that feature was still left in the codebase.

2. Fixes a case where form signature checking would wrongly fail even though all fields are present and have not changed. Fixes 2. of issue #998.