Postpone type initialization if happening in Paint.

Fixes #94.