Various fixes of RD-related code in Moore are to be collected in this MR.
Currently implemented:
rdbuilder.py