Add Encoder.emit_int.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>