Form helper: refactor form_open() and _attributes_to_string()
More logical order