Fix issues with a missing layout character after the term ending period in Prolog conformance tests