Fix safe_convert to handle Infinity and NaN as overflow for integer types
Fix safe_convert to handle Infinity and NaN as overflow for integer types

lambday/shogun,besser82/shogun,shogun-toolbox/shogun,geektoni/shogun,lambday/shogun,lambday/shogun,besser82/shogun,geektoni/shogun,lambday/shogun,geektoni/shogun,shogun-toolbox/shogun,lambday/shogun,besser82/shogun,besser82/shogun,shogun-toolbox/shogun,geektoni/shogun,besser82/shogun,geektoni/shogun,shogun-toolbox/shogun,besser82/shogun,geektoni/shogun,shogun-toolbox/shogun,lambday/shogun,shogun-toolbox/shogun