fixed code to handle new jsonreference.Inherits definition