ovs-appctl-compgen: Fix few bugs.

Signed-off-by: Yeqiao Wang <ee07b291@gmail.com>
ovs-appctl-compgen: Add unit tests for complex commands.

Signed-off-by: Yeqiao Wang <ee07b291@gmail.com>