I found out that the problem was my document class, as this problem don't exist with standard classes. So, not a LyX problem and I set the bug to "fixed". (Or is "invalid" more correct?)
Now to find out how my .layout additions can have such a strange effect. Helge Hafting