Fix parsing trait methods with additional arguments after self
Fix parsing of foreign functions