tottf: accept exactly 65535 glyphs as in the sfnt specification

Closes #1581.

r? @frank-trampe
> with a more menacing error for at->gi.cnt > 65535

It aborts in that case so it should be fine I think.