lib/standard/ropes: Added cache mechanism on indexed access for Concat