Add test for actual percentile correctness.

This added a test to ensure our percentiles are correct. It also makes a small change to Quantile itself to avoid floating point error messing with otherwise exact number types.