The "UNKNOWN" means that the SV being stringified was not a valid type - so either its a freed SV, or a corrupted SV. Which means it's either a bug in perl or some XS code, or the OP is doing something which is known to screw up at the Perl level, like modifying an array while iterating over it or using it as function arg.
Dave.