Fix: resource objects incorrectly stored across methods.

Yanked 0.6.0.