Fix bug when casting non-relational field declared after relation in fieldConf

Reset $relType so casting doesn't treat all fields after relation as a relation.
Merge pull request #21 from ItsDom/patch-1

Fix bug when casting non-relational field declared after relation