Previously we would blindly put leading comments of the next expression, but we didn't account for a real trailing comment. By checking if the leadingNode is on the same line, we can correctly put it there when needed Fixes #685
Now, all the variations of comments in ternaries are printed the same way. Fixes #617