Farmer dubbed Maoist by Mamata given bail by court