Fix borked resource module for LabeledElement, and GroupElement.

Change-Id: I2ca8aa4c7e7e7c22f42f22660fdb363dcc8d1f19