Fix a param-handling bug in normalizeAsm

normalizeAsm() can sometimes remove leading statements from the function body, if they are a similar shape to a parameter declaration.  This patch adds an additional check to be sure that each parameter is processed only once.