Working on storage engine compatibility

Fixes some failures to call Dispose on native handles by adding Dispose
to Attachment.

Currently working on resolving some AccessViolation issues with
collation functions.