added error message for comparing numerics to periods. Fixes #162