more typing in pool example and added uninit constructor for rand arrays. Also refactored conditionalrandvar
added array slicing/indexing with ranges