Propose to improve the \Magento\Framework\Data\Form\Element\AbstractElement::setForm() method signature

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

Propose to change it to

public function setForm(AbstractForm $form)

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