I've got this issue happening. I set up simple LTN loader and unloader stations and made blueprints. When I place those blueprints in the same orientation they were in originally, everything comes out right, but when I rotate the blueprint before placement, the loader and unloaders are not rotated and the rails they place are also in the wrong orientation.
Screenshot of the issue: https://imgur.com/a/waHTclH
Save file: https://www.dropbox.com/s/48vp6vixho03qk3/Test%20World.zip?dl=0
Note: I have a custom mod that overrides the sprites and replaces the rail prototype in data-final-fixes to use those from Naked Rails. I have changed no code in your mod or control.lua however.
Custom mod files: https://www.dropbox.com/sh/fkr3otjiqojdq7h/AABvPpRMMYavtVWIfHbvCx2ja?dl=0
Relevant code is:
-- Replace unloader graphic to remove rail gravel (for naked rails)
if mods["railloader"] and mods["naked-rails_se"] then
-- replace unloader graphics with transparent ones to get rid of the dark concrete
data.raw["simple-entity"]["railunloader-structure-horizontal"].picture.layers[1].filename = "__SideliasFixes__/graphics/railunloader/structure-horizontal.png"
data.raw["simple-entity"]["railunloader-structure-vertical"].picture.layers[1].filename = "__SideliasFixes__/graphics/railunloader/structure-vertical.png"
-- replace the loader rail with a naked rail
local loader_rail = util.table.deepcopy(data.raw["straight-rail"]["naked-straight-rail"])
loader_rail.name = "railloader-rail"
loader_rail.flags = {"player-creation"}
data.raw["straight-rail"]["railloader-rail"] = loader_rail
end