Fix cgen_array_slice for access dereferences
Some STD.TEXTIO improvements
Fix assertion failure in elab_funcs