[fix] Template, to_json

* Template, to_json supports nonobject arrays