sfmt.erl: fix typespecs