fix Issue 8244 - cannot slice a type tuple with '[]' in locations where a type is valid