Orvid/druntime — pull request #4 by rainers (2014-11-28 12:17:50+00:00)
Title: Cleanup and fix array shrinking

I made the discussed cleanups and added a few tests. That way I noticed that shrinking an array explicitely didn't call struct destructors.

- remove StructFinalizers, preallocate FinalizeError
- remove TypeInfo from gc.setAttr/setBits
- assumeSafeAppend now calls struct destructors, checks whether the array is really shrinked
- remove rt_ prefix from internal functions
- add tests