A port of fuelphp/fieldset to PHP < 5.4