Write relationships when inheriting XACML.

Additionally, a fixing a couple notices.