core: Medusa::CreateFunction now calls OperatingSystem::AnalyzeFunction