Fixed serialisation of non-dynamic ArrayPlugs.

We were serialising a construct/addChild pair for the first element of the array, even though the element would be provided again via the constructor next time. This led to one additional plug being added each time the ArrayPlug was serialised and unserialised.

Fixes #580.
Merge pull request #977 from ivanimanishi/fixArrayPlugCortex8

Fixed serialisation of non-dynamic ArrayPlugs.
Packporting some changes from master. Bumped patch version.