Add the support for returning dictionary from FFI