fixed inflector camel2id and id2camel

fixes #1160

Are there tests for the Inflector?
code style needs to be fixed. No need the extra parenthesis around `$strict`.