Converts a List of Mercator objects into a List, which is a JNI-compatible native structure.
Converts a core engine Set to a Kotlin Set.