The cam/crank misalignment will have to be addressed first and may be the whole issue. If you changed the sensors and still have the faults, the sensors aren't the problem and the misalignment is real. The sensor are telling you the truth.
Go through the 'Possible Causes' for P0016 below. P0017 would be similar, just the other cam.
#1 on the list is oil. Since the MultiAir uses oil pressure to position the cams, it is most important to be the correct oil type & weight. A motor oil meeting Chrysler MS (material standard) - 6395 is important. Synthetics have come down in price.
Since this issue happened after the head gasket replacement, I think that the timing marks will have to be checked next. The marks have to line up 'dead nuts'. Something may have moved during reassembly? There is no 'one tooth off' with these valvetrains.