Speed up json_load_dir by 400% by eliminating try/catch in item_factory, and using is_array instead
Merge branch 'pr/3491'