Properly support arrays with prepared SQL statements.