Improved tests and fixed many smaller issues to make them run

* Order of reference snaks and qualifiers now used
* Some ordering happening in toString() to ensure uniform output
* Jackson-based Snaks and ItemIdValues have parent documents to find the
site IRI
* The Jackson factory correctly sets all data (including mock parent
documents where needed)
* Some missing toString/equals/hashCode added