Fix ffi parsing for short types

I tried recreating issue #102 on my system and hit this bug. Here's a fix and a regression test. Also adds an eq comp op for i64s.