Use pluralize and dasherized model name in pathForType.

This is a fix for #19.