Use more compact code in JSONR_unref
Use more compact code in JSONR_unref

Use local variables and functions, check element type only in one place
bellenot/jsroot,root-project/jsroot,linev/jsroot,root-project/jsroot,linev/jsroot,bellenot/jsroot,bellenot/jsroot