Improve insertion handling for  Item and Layer so insertAbove() / insertBelow() works for Layers too.

Closes #603