Add read and write support for NaN, Infinity and -Infinity