Fix bug where camelCased directive inputs weren't being dasherized