Minor optimization to discrete tabulated functions
Merge pull request #669 from peastman/custom

Minor optimization to discrete tabulated functions