Fix bind_params() in Statement and add tests