Fix countArgs/writeArgs in RedisConnection to properly handle non-string array arguments. Fixes #504.

Also adds matching unit tests.