Update classes/fieldset.php

Related to #1278. Also fix add_after.