lib/core: Avoid boxing when comparing two NativeString instances