Fix for outputting resource type in arrayToString method.