Implemented text layout memory management & pango byte index mapping.

This would allow it to easily map the utf8 byte index as well fixes the native object memory leak.