Fix indexing for sequence elements

Array was in the wrong scope, so it would not update
the sequence elements correctly, appending data to the
array. Moving the declaration to the right scope
clears the array.
Fix for offset roundrect move method

The offset roundrects use a transform to set their x positions.
We re-write the method so that they can be moved correctly now.