Generate consistent random settings across nodes

IndexGatewayTests rely on that all nodes have the same type of
storage to pass consistently. Random configs should be the same for all
nodes in the cluster.
Fix CustomScoreSearchTest that assumed a certain order of doc IDs with equal score