Updates setProperty logic to deal properly with generic properties on generic superclasses.