Ensure the $ob->jsfiles is an array, not an object when it is serialized.