Confirm Sprockets as a 18/45 is taller than any OEM stock. Dropping the front to a 17 just makes it equivalent to OEM 18/48. But this can't be the root problem.
The bike in stock trim should have no problem pulling redline in 5th, so before applying bandaids I'd return it to pure stock, check the compression, timing, then cry, pull hair out etc.
Oh, I see you've done compression. 130 is a little low IMO. 160-170 would be better, but still 130 shouldn't be bad enough to limit top end. Just not crisp. I wouldn't expect your symptoms till 110 or lower.
From what I've read if all else is stock as a board, I have to suspect the Dyna. When they go bad they can be very fickle, no logic to the failure symptoms. Get a points plate and try it then.