fix rowcat for scalar|vector|matrix combos in a and w