IR gen: fix casting to abstract_stream_value
IR gen: slicing: load pointer-to-scalar result