(quicksafe) revisited the device::{set,get,has}_quantity interface

the device now stores locally the quantity sets for the segment-specific cell ranges.
this naturally allows to externally provide a quantity set, a segment-wide scalar value.
in the future the interface can be naturally extended to functions or viennamath expressions