Fix unknown refactory case exception, fix some error messages, in the inline refactory
Merge pull request #623 from josehsantos/fix-inline

Fix some bugs in the inline refactory