Merge pull request #88 from tvollstaedt/master

Fixed EMongoDocument::search() with pre-defined lists as attributes
Added a check on count() for array
Fixed search criteria on empty arrays