fix for toDex: gracefully handle situation where an instance method does not have a this-local