Autoloader ignored when value is set.

Made changes to the Entity `_set` and `autoloadAll` so that when data is loaded, it is not over-ridden by the autoloader.
Added Tests for the autoloader.