Clear resources after disposing

Noticed in testing out samples that we could get crashes from trying to paint text block layouts after we'd already freed the underlying SWT text layout objects. This shouldn't happen so when we dispose of resources we ought to just clear out the underlying objects as well.

Note that this is a blocker for the alpha release since it crashes on one of the known good samples (`samples/expert-definr.rb`)