Switch basic univariate types to immutable's

Replace expr() with Expr()
Replace randi() with rand(1:n)
Merge pull request #28 from JuliaStats/immutable

Switch basic univariate types to immutable's