Ensure @EncodedPath is not cast to @Path when processing method.

Closes #306.