Hi,
I think that is a different James Lyall as James William Lyall born 1894 goes by William, even though his middle name is James. I William James stating he is single on his attestation papers really confirms that this is another James Lyall.
Hope that helps clear it up.