cisstCommon: created cmnIsFinite to avoid issues with macros