'closed' parameter should be taken from widget, not from field. Also, 'c...

...lassname' is redundant here, it should always be 'collapsable' here.