Raise AttributeError in case a GSpec from the gir isn't found; also ref if it is found..