Enable legacy implementation of perform if safe
Skip tests if increment is not available
Pep8 / pyflakes on the new section
simplified increment check
remove AdvancedIncSubtensor.__setstate__