This should be 'toc=preamble toc2!' in the positive case. Setting 'toc' won't have any affect. Setting 'toc2!' is just a way to avoid conflicts with the toc2 attribute set in the document. The toc2 attribute is deprecated anyway.