[FIX] models: exists() should not consider record with id 0 as existing
[FIX] doc: remaining instances of ruby-style interpolation in templates

fixes #3157