Minor improvements to DiscreteFunction interface.
added unsafe accessor to support DecBRL efficiency