Fixed bug in the D bindings that could cause memory corruption on string deletion. Renamed clear to destroy