Refactoring and clean-up of unwrapping class and unwrapping utils

 - switched lots of matrix index vars to int
 - simplified and refactored linspace, range and other indices methods
 - new methods for indices calculation
 - moved indices methods between util classes

Note:
 - with linspace and likes of doublematrix on linux64 I had numerical
  instability, with values not being exact integers.
 - on windows it seems to be quite stable - initial attempt to resolve
  this b4419e1 , it worked but fastmath is an overkill
Add cumsum method to JblasUtils

 - merged-in from not published branches
Finalized unwrapping classes
Merge remote-tracking branch 'github/v0.8' into v0.8