Fix preparation of as patterns
Fix preparation of as patterns

- Subpatterns were being recursively prepared before using up a
  variable, resulting in variables corresponding to the wrong pattern.

unisonweb/platform,unisonweb/platform,unisonweb/platform