Function "getQueryTriple" from class "SSAP_XMLTools" returns vector with 4 elements: subject, predicate, object and object_type.
In documentation I have found the following string: "Each element of the vector contains another vector formed by four(?) string elements : -the subject -the predicate -the object -the subject type -the object type (i have counted 5 elements)". Also, Smart Space returns subject type. I guess that subject type is missing in output of this function.
The fix is very simple, you should add to the function source the following string:
after line "singleton.add(etriple.getChild("object", ns).getText());"
But i don't sure where is a real mistake: in documentation and SmartSpace raw output or in the "getQueryTriple" function.