Fix BLPOP and BRPOP arguments constructing

BLPOP and BRPOP commands  do not correctly construct their arguments. The *i* variable is not getting increased in the range loop and timeout arg is getting placed in the first position instead of the last.