[qtcontacts-sqlite] Test priority of local details in aggregation

Also ensure that a local constituent added to an existing aggregate
produces a correct result.
Merge pull request #163 from matthewvogt/prioritize-local-details

[qtcontacts-sqlite] Test priority of local details in aggregation