A nine-year-old boy has returned home after being hit by a car and spending two months in the Royal Hospital for Children in Glasgow.