[PHP-647] Check isMaster response for "secondary" field

Create a new connection type, INVALID, for when the connection type cannot be inferred (e.g. recovering secondary).
[PHP-647] Update tests for logging of isMaster "secondary" value