Issue #3501591 by realityloop: Check data type before unserialization, if already array handle appropriately.
Closes #3501591