ports functions update.
call_with_port bug fix.
locals added to module.