The answer is - H Rider Haggard
Which author, two of whose works are "Sketches by Boz" and "Little Dorrit", spent some months as a boy with his father in Marshalsea debtors' prison in England?