issue related to already registered class from eigenpy
See https://github.com/stack-of-tasks/eigenpy/issues/83 and https://github.com/stack-of-tasks/pinocchio/pull/817
The same changes as in https://github.com/stack-of-tasks/pinocchio/pull/817 need to be applied in curves.