Fix #316, only cast to a list when a base string.