Add matrix reshape support in BARY().