some improvements to strict mode in autocompleter. refs #1590
code improvements and bug fixing to autocomplete plugin. refs #1590