Fix get_suggested_node_names.

This is used by the tidyquestion script. There was not a unit test
before. Now there is ;-)
Add missing setType calls in tidyquestion.