Fix isSingleKey() returns true if it it is object which has only 1 property.
Fix TritonError constructor does not copy code argument.