nested models binding (both ways) patch

I noticed that this does not handle nested models. Perhaps there is a way that I did not know of. So I made the necessary modifications. Needs to be tested some more but for single level nested I have tested and it works.