Made rope_char_count and rope_byte_count take the rope as a const