Fix and optimize line_is_signature_name?