Allow the namespace alias to be used in query builder

Allow namespace aliases (e.g. FoobarBundle:Bar) to be used
in the query builder.

Fixes #407

This fixes the issue, although I notice we have the same issue with `->find($className, $path)` and maybe other places.