Support IList and IEnumerable parameter type for FFI