entity.hpp: exprter for EntityWithSources<T>

- Define exporter for entity with sources
  Just defines private functions that have to be
  used by some not yet implemented proxy

- Add macros to accessors.hpp
  It's not getting nicer with all the macros

- Let DataArray inherit from EntityWithSources<IDataArray>