Fixing Dispose issue on Geometry classes

- When the base class is not imported via FFI, ensure that all the
methods on base class is imported in derived class.
- Add ";" in ToString() method for constructors and function def nodes,
where there is no function body.