zmtp/2.0: require socket type

Also indicate that socket type may be null.