Like it was previously posted, you should run a starter course up the rakes. It makes the edge stronger and it helps resist wind uplift because an uplifting wind is now acting on a much larger piece of roofing than just the one tab that's out there next to the rake. Also as was posted, the shingle wrapper is your friend and your ticket to a favorable outcome should a warranty issue ever arise. Believe me, once a shingle manufacturer can certify that their product was not installed according to the wrapper instructions, you don't have a leg to stand on as far as warranty claims even if the failure had to do with premature fading or some other issue not even remotely related to installation.
We always try to keep the nails out of the actual rake trim material. So, if you're doing a typical rake board with a 1x2 run along its top edge, you would want to stay a couple inches back of the edge to keep the nails out of the trim material. If you lay out your roofing correctly, you shouldn't have any little bitty tabs near the edge that will require you to nail close to the edge. Also, this is where the starter course along the rake helps you, even without a nail right at the edge, the sealing dots will bond the shingle to the starter course along the rake, ensuring that the tabs stay put.
Rake trim material typically doesn't last anywhere near as long as an average roof. It's likely that you'll be servicing the trim over the life of the roof. This is when nailing into the trim can come back to bite you. You will end up working the nails out of the trim to get it off the building and unless you can get the tabs up high enough to facilitate re-nailing them, you're compromising the attachment of those shingles. If you're using any new cellular PVC trim, while it's unlikely you will be servicing the material at all, it is subject to some serious crawling around on the building during temperature cycles and that will cause the shingle nails to work loose eventually and the job will look like *** or worse, if the movement of the trim is sufficient, it will put undue stress on the shingles and cause the tabs to tear with respect to the rest of the shingle that's nailed to the roof sheathing. I have personally seen long runs of PVC rake trim move up to 3/8 of an inch over the course of a summer day.
I have addressed issues with respect to working with cellular PVC in a post I did a while back called "Azek, while it's still fresh in my mind" or something like that.
Happy roofing.