Add handling of static methods in the typer + tests