Allow for int in addition to object/object::__toString and added some testing including an unhappy path.