Fix cmdloop's handling of the dispatch result. The type assignment overwrote it.