lnodes_is_valid: now checking face_code bits.
lnodes_is_valid: does not use pow for integers anymore.