Fix type-errors in existing migrated EngineM functions.