Add proper name resolution for assignments