Fix function editor tracking of parameter arguments
- Store unique IDs of parameters while in function editor dialog
- Reset parameter IDs when opening function editor dialog with new function