Added function to extract glyph compositions, fixed glyph offset scaling.

I just realised that I really needed precise information on how characters are composed out of glyphs, so I threw away the previously added duplicate function and created a new one that flattens the composition tree and returns all the necessary data unprocessed.

In the process, I also fixed #6, so diacritics should work nicely now.