removed obsolete method appendPrimitiveOrValue() and few minor fixes