BF - check shapes before allclose