fixed some issues with Visitor._populateWithJSON