fixed potential issue with parfor loops nested in block statements not being scanned. also fixed issue with function number-names (guaranteed to be unique now)