Amend is_allowed Mustache helper to allow context objects in addition to numeric context IDs

This one frequently trips me up and causes bugs, so I'm letting myself do {{#is_allowed 'action' 'Model' context=instance.context}} in addition to {{#is_allowed 'action' 'Model' context=instance.context.id}}<br>Ref: p/68499990