Fix cast override regression on uri primitive.
Merge pull request #145 from evoskuil/version2

Fix cast override regression on uri primitive.