compiler: js: use Backbone.Collection for sequences of compound types