fix loads for comparison ops
stringify ranges
add __getindex__, __setindex__ hooks and range string slices
Improve codegen mechanism for exported variables

Improve the generated code. In case of exported function the function
body is not duplicated.