fixed set-dimensions signature

Assumed that the args were arrays - fixed them to send a json-k-v pair.