parser: Fixed scoping bug for Formals