updates math.norm behavior for values outside the range and for cases where val === min === max. closes #194

closes #199