I was working on this feature: - Default value support for function parameters. We need to support it fully - ie. in the main window, and in dlgFunction and friends.
Please find the patch for the same and the some of the test-cases, which I have used while implementation and testing.