Bug 989098 - Use wrapper object to pass generic objects in sendResponse. r=wesj