lib/standard/ropes: Added to_leaf method on RopeNode.

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>