Replace Go intarray by original C.
Fix Stmt.finalize to avoid double free.