Write 'kern' subtable header correctly even if some kern pairs were dropped

My previous changeset contains a bug: if some kern pairs are omitted, *kern* subtable header contains incorrect information about its size and number of kern pairs. The issue is now fixed by building *kern* subtable header after writing kern pairs, when information about number of kern pairs is already available. It can be tested on Roboto-Regular.ttf.