Added code-rewriting function to replace all lists with vectors