provide support to export entities with all its references

Solves #14 
Why a change of heart here? I mean, we can use array short syntax here as well.