Fix aliasByNode to handle multiple arguments