Perl: Minor THAW optimization: Do not recalculate array length
Perl: Safely assert that OBJECT(V)_FREEZE is followed by array ref

Otherwise, we risked segfaults. Thanks to Borislav for finding
this little nasty!