constify a few of the methods to avoid making copies of shared_ptrs. fix 2 bugs in the test in creating the unionizer to use for the tests both to do with json ptree array parsing