[COREVM-52] Fix invalid exception raised on native type operations