Autorelease the tails of dynamic sequences upon deallocation

Fixes #238.