Fix indentation
Add -XDoAndIfThenElse flag
ManagedPtr implementation (ForeignPtr-like typeclass)