Remove unused variable
Prevent dangling else-warning
Fix warning in groupby tests
Add a meaningful message for join types
Modernize JoinScan