fix issue #31: support @Path on type

cc @tommack