fixed broadcast bug in set-indices and set-indices!