Only short-circuit a refresh request if the pending request has the same  command-line args as those requested.
Some minor tidy-ups.
Fixed race condition in open api int test.