In the first picture, b) is a glitch bug. In the second picture, you have found another way to reproduce a long standing bug!
There have been multiple causes for this, but I have had trouble finding all of them! I knew there was at least one more. Thanks. Unfortunately, this is probably not going to be in v18.09 as I am in the middle of preparing it now.