Avoid unwanted behavior with text objects that cannot be nested. Fix #19