added buffer, and tests for ffi
fix a translation error
Merge pull request #121 from pixie-lang/ffi-improvements

Ffi improvements