nitg: Fixed bug when trying to instantiate abstract class.

Added tests to prevent instantiation of abstract classes in a nit program + unit test.