Fix bug with lists:seq(-1,0)

Internal optimisations were a bit aggressive.