getTypes() and getLiterals() now return a somewhat sorted result