[Fix] Add CountRequestBuilder.toString and fix SearchRequestBuilder.toString

This commit fixes the SearchRequestBuilder.toString to be idempotent and adds an
idempotent CountRequestBuilder.toString method.
Also add tests for both these methods to prove the aren't mutating the underlying search request.

See #5555 #5576 #7334