Fixed the generation of internal implementations of abstract classes to actually work.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>