Update check in opj_tcd_makelayer to be robust to different float precisions