Fix #490 issue about object with cast declartion
Remove var_dump
Added more tests on class hint in method parameters
Merge pull request #492 from ovr/490_issue

490 issue