Ensured the internals of mapped classes are generated.

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