Construct the right type name

Classify trims out 's' in the end
Don't confuse local var
Add travis
Merge branch 'fix_constant_loader'