stop leaking strings returning by leveldb
remove unused type aliases