Switch to_strings() into another generator

This way we don't create a massive list when we want to export a
property.