Bug fix: $dirty flag incorrectly set if empty Obj passed in