Just a comment,
the DXF file format was created by Autodesk. And there is a reference manual for this format. And more than one ENTITIES section is definitely not allowed. But at the moment it looks like it is tolerated.
So at the moment it works.
But may be in the next version it does not work. So I always recommend to follow the rules / do what the manufacturer recommends.
regards
Markus