fix RDFJSON and remove debugging
ensure that valuefactory is setup initially
send in value factory
fix some more tests and add extra tests for roundtripping