Genericize collections bindings

We need to be able to map all collection types, i.e. `list<int>`, `list<float>` and not just `list<string>`.