Well, if the PV System is of the ungrounded type, the white wire in 2-wire non-metallic sheathed cable, if used for the output circuits would be in violation of the code.
.....re-identify the white wire.....
As for romex being bad practice as jaggedben said, IMO using romex for a high voltage DC run thru a dwelling is a disaster waiting to happen in that a lot of homeowners will attempt do their own electrical work. If renovations were done in the future and someone comes across that romex run, they just might try to add branch circuit wiring to that cable.
I see your point.....but I can not stop an unqualified homeowner from performing unlicensed/unpermitted electrical work. Especially if I comply with labeling and marking the DC source output conductors[/B
Your AHJ may have approved that installation. But if it were my installation, I would not be comfortable with the use of romex for the high voltage DC output circuits.
Yes....in compliance with NEC and local AHJ...
With that said, let this be a warning to you that using romex for the installation you have described could be hazardous to persons and property.