Issue 123

Finish the implementation of missing matlab constructors including:
 - ind2sub
 - sub2ind
 - meshgrid
 - ndgrid
 - randi
 - rng

Collateral changes includes :
 - remove use of ind2sub/sub2ind in functions that in fact wanted to use as_subscript
 - changed the way PRNG are stored globally and retrieved