fix cffi warnings for proper buffer types (#545)

3 files changed