Improved rules for distinguishing JSX element from type cast.