Fix #109, define uniform.inv & test

Also added tests for previously untested uniform.pdf and uniform.cdf
functions.