fix sd-repeat pop/shift/splice on empty array