Completely re-wrote the fetching algorithm for relational data to be able to handle fetching doubly nested relational data in arrays.
Merge pull request #2 from Myztiq/master

Completely re-wrote the fetching algorithm for relational data