Various bugfixes in mRgb/oRgb handling.