Simplify generated FlatCurry when the specific type of a class function is known
Currently a lot of apply-calls are inserted wherever a class function is used. This is not necessary whenever the arity of that function is known. This is always the case when the specific type and thus the specific instance is known at compile-time.