convert village, session, hhid variables to factors