[io] throw errors on illegal seek arguments, no assertions

Fixes #1130 and the relevant nqp test.