Fix params.Bind and add a test