allowing a nested_object class_name to be nil
Merge pull request #25 from goncalvesjoao/master

allowing a nested_object class_name to be nil