added spec and fixes to handle :has_many. 
added nullify method to assign children to nil after to_record.dup.
update readme