Fix json encoding of UserList and UserDict subclasses in CLI.