Deferred  lookup for view rendering
Handle transient models, which have no ID yet; use the CID from the model
Correctly handle 0 length collections when length is used in template boolean expressions