CLEREZZA-725: reverted to previous revision except the new test QueryParserSerializerCombinationTest.java, and used LinkedHashSet instead of HashSet to preserve ordering of sparql query pattern