Add missing template constraints for the RedisDatabase.z* functions.

See also #811.