Scan: Support strings (enum) in 'Wait' command

Fixes #476, and also updates the GUI so that values that may be a number or a string will use quotes for the string