Fixing isAssignable so that it correctly deals with 'this' when it is a reference type.