Use pluralized and dasherized model name in pathForType.

This is a fix for #19.