EAV properties added to to_array
EAV properties are loaded in the correct order, property is a reference to the original relation array
EAV processing is merged with EAV container check
Introduced third parameter
Relation filtered, properties merged to array
Fixed typo
Check first whether $eav is true
Merge pull request #329 from sagikazarmark/1.8/develop

EAV properties added to to_array
Only update original relations with imploded PKs of not new objects

Signed-off-by: Andrew Wheal <andreww@propcom.co.uk>
extra checking on updating original relations