Merge pull request #778 from jails/dev/grid-fs

Tests for #766.
Fixing issue #780.
Entity->modified() behaves correctly with empty values (empty string,
zero and null).
Merge pull request #781 from rapzo/dev

Fixing issue #780.