fix signatures returned by get_address_from_input_script. fixes #653