Improving overflow handling in isShown atom. A bunch of new tests added
for Java binding, but someone should reimplement them in JavaScript too