Merge pull request #27 from hAdamm/master

Fix wrong array merging
Removed array flattening in QuerySpecification
Merge pull request #28 from ZZromanZZ/bugFix

Removed array flattening in QuerySpecification
Fixed bad reference to relationship
Merge branch 'as-bugFix'