LinOPDI adapted to new structure, unified test cases, improved type safety (compiler warnings)