Value: added isSelfCaptured for ceylon/ceylon-compiler#1530

This is different from just capturing because we only need the special indirection when the object
is captured within its own scope.