Fix localclient

We weren't passing in tgt_type to get_iter_returns. This was breaking
batch mode for highstates and probably a bunch of other things.

Resolves #11094, #10470 and probably some other issues surrounding the breakage of batch mode.