De Bruijn index-based FFI for PureScript