Fix bug in JSON ApiRenderer that rendered simple associative arrays as a sequential array with one object element.
Remove superfluous check for CLI in ConsoleCommand base type.