Make OFAllocFailedException base on OFObject.