Fixed Uncaught TypeError in SequentialLayout

`Uncaught TypeError: Object prototype may only be an Object or null: undefined`
Was preventing the class from being 'extended', but now that's fixed.

I may update this branch with other small fixes that are similar if I encounter more of them.