Added full support for Resource type and fix parser for object and callable
Travis composer prefer source | because sometimes build fails on it
ClassMethod checkStrictType refactoring - rewrite n cases to one