A nine-year-old boy has been rescued from his father's van in eastern France, where he was locked up for a year and a half.