Changes concerning join tests

Made changes to have all required information available when using multiple sources (joins). Refactored building the result set a bit to avoid creating a mess.

The concerning tests: https://github.com/phpcr/phpcr-api-tests/pull/102