SybaseX/MssqlX: Nvarchar fixes

This pull request fixes the `nvarchar` SQL type for MSSQL server. While debugging, we also stumbled upon issues with network vagaries, which have been fixed alongside this pull request.