bugfix: segmentation fault might happen when set_form_input_multi was used while no proper Content-Type request header was given.
various coding style fixes.