Function overloading with generic types support.