moving variable declarations to the beginning of the function
fixed a typo
variables must be declared first in their blocks (yet again)
Merge branch 'develop' of github.com:igraph/igraph into develop