Duration parameter works for simple calls to api.Section.expand( { duration : foo } ) and collapse(). Still needs testing with more use cases.
Removed console.log statements. Basic queue implemented to feed extra arguments to onToggleExpanded() without storing them in api.Value