io.ports: use fixnum where possible, assert c-ptr since we use memcpy.