svn commit:198280 and 201892 Improved XML stream based JSON parser to ha...

...ndle ref complex element and Fixing DS-891 by Anjana