Fixed #597, fixed broken joinType comparison
Merge pull request #612 from 'stevleibelt/master'