ast: var capturing will ignore catch clause and for loop declarations. fixes #274