Fixed a bug that meant doubles did not ever compare as equal.