Fixed shape output streaming

Fixed writing of byte offsets when streaming out shape files.