Fixing bugs on join results from relations.
Fixing serialization/unserialization of entities.
Add exception for undefined entity classes on relation tag declarations.