Make stackFileVersion a custom type
[[ Bug 12203 ]] Add version parameter to arrayEncode to allow preservation of unicode keys and values