Fix for #518

Add ctrlSpace parameter and set AutoCompleteUniqueMatch appropriately.