added input-only and output-only variants of socket ports
fixed wrong internal flags in socket ports
development of srfi 106