chain references in joins for AR4

Fixes issue #42

All tests are passed