Fixed shape check for scalar '*' usage.