more fixes for sequence.APPLY operations

continues c73d2c590c795f860c890c89148bf688d6c6b24b and also fixes a typo (s/lenght/length/)

thanks @MiroHibler for noticing the issue