Sync function parameters had mismatched order 

Apparently the order of method and model has been reversed in later versions of Alloy. Swapping position of method and model in function declaration to fix this.