Ensure parameters are used as property maps in patterns

And not as pseudo-identifiers
Merge pull request #1035 from cleishm/params_as_props_in_pattern

Ensure parameters are used as property maps in patterns