Fixed PHP-1111: MongoClient constructor crashes on connection to slave.

https://jira.mongodb.org/browse/PHP-1111
Did we hardcode 'localhost' for replicasets too?
IIRC we used the hostname and have test for connecting via ip/localhost/hostname to check for the "don't duplicate same node" issue... Is that a concern here too?