generate a list of first level parameters

It's impossible to generate an argument list for a function in handlebars and omit the trailing comma when there are child parameters involved. Creating a list of first-level parameters solves this.