Add SMWAPI/SMWQueryResult meta information to result serializer

+ Helper functions that returns serialized query details
+ Method that returns a serialized SMWQueryResult object
with additional meta data
+ Methods that returns query result hash value
+ ApiSMWQuery to use the new toArray to make use of the native
meta data

## Note
Tis change is required by the new SRF\EventCalendar printer as
it it used toArray() directly in ordet to generate the query
result output.

Change-Id: I0195704cb536851f084dfb7b50a598dd161f5fd9
Merge "Add SMWAPI/SMWQueryResult meta information to result serializer"