Replace SingletonQuery with BooleanQuery on computed singleton field.

Updated use in command parsing and mbsync plugin. Addresses #648.