SMS dit: Resolving the stellar populations in A z = 4 lensed galaxy