Import local variable to prevent duplicate method call
Add spec for uniqueness of local names in nested join nodes