fix dcat and rcat to return NaN and NA with negative prob(s)
fix dcat and rcat to return NaN and NA with negative prob(s)

nimble-dev/nimble,nimble-dev/nimble,nimble-dev/nimble,nimble-dev/nimble,nimble-dev/nimble