provide support to export entities with all its references

Solves #14 
btw. you can configure the serialization to do it, but I would like to break existing exports. What do you think?