Added default streamType parameter to Socket constructor.
Infer stream type if not explicitly specified.
Matched PHP's behaviour for stream type.

Returns the correct value of tcp_socket when HipHopSyntaxEnabled.