fixed initialization bugs in Visitor._populateWithJSON