Fix IN streams to return data

Slice was incorrect and always returned an empty buffer.
Create a handleScope in callback to avoid leaking references to buffers