Fix format of the array of AMD dependencies in require calls.
ViewStack: Use nextElementSibling/previousElementSibling instead of relying on Container methods. SidePane: Replace nextSibling by nextElementSibling (for consistency)