Unable to set unique «name» attribute values for the HTML inputs generated by the \Magento\Framework\Data\Form\Element\Checkboxes class

https://github.com/magento/magento2/blob/2.0.0/lib/internal/Magento/Framework/Data/Form/Element/Checkboxes.php#L197-L212

As you can see there is no specific code for the name attribute.
There is the possibility to set name attribute value with the code:
https://github.com/magento/magento2/blob/2.0.0/lib/internal/Magento/Framework/Data/Form/Element/Checkboxes.php#L198-L202

But see how it works:

https://github.com/magento/magento2/blob/2.0.0/lib/internal/Magento/Framework/DataObject.php#L218-L222

So a \Magento\Framework\Data\Form\Element\Checkboxes instance will called for the getName method with the parameter (a particular checkbox key), but the method getName has no parameters in the base class:

https://github.com/magento/magento2/blob/2.0.0/lib/internal/Magento/Framework/Data/Form/Element/AbstractElement.php#L180-L187

PHP does not allow to have multiple methods with the same name but different parameter signatures so we can not handle the call \Magento\Framework\Data\Form\Element\Checkboxes for getName method with a parameter.

https://github.com/magento/magento2/issues/2426