Just a minor thing that is fairly easy to figure out but may alleviate some headaches down the way if the script were to catch this...

hook_settings and hook_form have changed so instead of outputting HTML containing the form output, they now output the $form array itself. Using this script on a hook_settings implementation without catching this results in an empty form.