Fix pin_new already-initialized errors

.. by indexing with num_joints instead of num_axes as needed