Fix leak of options attributes.

Tests pass. Fixes #87.