Removed utility functions `isScalar`, `toScalar`, `isVector`, `toVector` from `Matrix` and `Range`.
Simplified/improved typeof function