Changed the behavior of Glyph.layout()

In the process, also fixed stem-flipping