Fix classmap generator warnings and tests