Fixes #1402: AR eager loading has problem when asArray() is used together with viaTable().