Making form signature tests not depend on string algo.
Adding more FormSignature tests. Proves 2. of #998.
Fixing test where FormSignature would fail on fields.

Fixes 2. of issue #998.

Refactoring into symmetric compile/parse methods.