Make same-buffer class location detection take namespaces into account.

If you were extending a class named \Foo\A with a classname also A in an
other namespace the class content gathering would run in infinite loop.
Thanks for reporting @markwu
Fixes #35
Merge branch 'master' into my-develop