fixed sub2ind and ind2sub (thin wrappers on numpy) as per Issue #58