Fix+test for bug in broadcasting to a var dim