Improved XML Stream based JSON to generate intermediate structure when schema has ref elements and added a new test case too

git-svn-id: https://svn.apache.org/repos/asf/axis/axis2/java/core/trunk@1578111 13f79535-47bb-0310-9956-ffa450edef68