Added basic support for writer initializers and finalizers.