Add Paradigm value class and increase performance (esp. space usage) for paradigms and paradigm inventories.