Fix compiler choking on methods with generic return types