Corrected autocompletion for adding parameters. Added functional test to verify.
Merge pull request #1442 from crobinsonut/fix-parameters-autocomplete

Fixed autocomplete when adding parameters