[masking] Fix packed sequences for abitrary mask forms (#50513)
* start
* fix it
* add test
* improve test
* need to expand
* remove check and add comments
* add co-author
Co-authored-by: Andreas-Hum <46613881+Andreas-Hum@users.noreply.github.com>
---------
Co-authored-by: Andreas-Hum <46613881+Andreas-Hum@users.noreply.github.com>