Prevent query argument length mismatches causing a panic

As outlined in #191, it is currently possible to cause a panic by submitting an incorrect number of parameters to a bound statement. This patch introduces a check for this so that a proper error is returned to the application rather than a panic.