added array() + scalar min() to DiscreteFunction