Replace SingletonQuery with BooleanQuery on computed singleton field.

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