Improve twinnable manymany join(), add main_context condition
Merge branch 'feature/twinnable_manymany' into master/chiba2