Block binding: Handle nested scopes better

#1358 
"used" here means that this name is taken and the next one that comes along cannot use this name.