nicer function signature (added type parameters, removed function names from type params)
some renaming, added stubs for openfl support (not yet integrated)