JBRULES-2792 Provide accessability of types and metadata for declared types
Cherry pick: 172c2029d2babce3, and add version-modification-suffix