Fix to JSON writer; added hasNextTwin/hasPrevTwin to EntityInstance