support for more advanced relationships

One to one and one to many relationships support and arrays