Fixes to LayoutController.insert (fixed exception due to bug in ViewSequence)