typeText() method added to Text (fixes #169)