Without calc_object_remap turned off in the conversion to and from
BMesh for the primitive nodes, the CD_ORIGINDEX custom data layer
has incorrect values. By using a different function to do the conversions,
we can avoid this problem.
Thanks to Jacques for finding the fix here.