fixed null handling in unit tests template
Added serializers for nested types
Basic handling of references in serialized xml