Pass a list of visible nodes when generating XML for a way. Closes #553.