I think this should be `node->targets[i]->value` -- the actual subscript doesn't get evaluated so it's probably not the best to pass it to getType().  I don't think that it has many implications though so it might not matter.