Fixes performance problem #326

The @BucketId and @StreamId parameters are coming in as NVARCHAR values via ADO.NET, whereas the indexes are defined on VARCHAR and CHAR values. This causes (at least) SQL Server to skip the indexes, e.g., when calling OpenStream. Fixes #326.