Bump ffi to 1.3.1

Change-Id: Ie2182d02066b41206a4bf07f3bb7a7f8d6d8f786