fixed next() when contarct in empty array
fixed has_next() when append() after contract in empty array
Merge pull request #1 from zigorou/fix/contract_in_empry_array

Fixed contract in empty array