support collections with a single value

For collections of a single value, percentile was raising an exception.
This was resolved by simply returning the single value (converted to
a Float) in this case.